package org.lex.catalog;

public class NullCatalogModel<T> extends AbstractCatalogModel<T> {
	private static final Object[] EMPTY = new Object[0];
	private T catalog = null;

	public NullCatalogModel(T catalog) {
		this.catalog = catalog;
	}

	public T getCatalog() {
		return catalog;
	}

	@SuppressWarnings("unchecked")
	public T[] getChildren() {
		return (T[]) EMPTY;
	}

	public void setCatalog(T catalog) {
		this.catalog = catalog;
	}
}
